/**
 * Generate code from /{{projectName}}-core/src/main/java/{{packageName}}/{{apis}}/dto/{{apiDtos@DEFAULT}}.java.hbs
 */
package cn.ibizlab.api.dto;

import java.util.*;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.alibaba.fastjson.annotation.JSONField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient;
import lombok.*;
import lombok.experimental.Accessors;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 认证接口[AuthLoginRequestDTO]
 *
 * @author generator
 */
@Getter
@Setter
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("认证接口DTO")
public class AuthLoginRequestDTO extends DTOBase implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 登录名
     */
    @JsonProperty("loginname")
    @JSONField(name = "loginname")
    @ApiModelProperty(value = "登录名", position = 0)
    private String loginName;

    /**
     * 密码
     */
    @JsonProperty("password")
    @JSONField(name = "password")
    @ApiModelProperty(value = "密码", position = 1)
    private String password;

    /**
     * DC
     */
    @JsonProperty("dc")
    @JSONField(name = "dc")
    @ApiModelProperty(value = "DC", position = 2)
    private String dc;

    /**
     * 验证码
     */
    @JsonProperty("code")
    @JSONField(name = "code")
    @ApiModelProperty(value = "验证码", position = 3)
    private String code;

    /**
     * 验证码标识
     */
    @JsonProperty("state")
    @JSONField(name = "state")
    @ApiModelProperty(value = "验证码标识", position = 4)
    private String state;

    /**
     * 登录类型
     */
    @JsonProperty("logintype")
    @JSONField(name = "logintype")
    @ApiModelProperty(value = "登录类型", position = 5)
    private String loginType;


    /**
     * 设置 [登录名]
     */
    public AuthLoginRequestDTO setLoginName(String loginName) {
        this.loginName = loginName;
        this.modify("loginname", loginName);
        return this;
    }

    /**
     * 设置 [密码]
     */
    public AuthLoginRequestDTO setPassword(String password) {
        this.password = password;
        this.modify("password", password);
        return this;
    }

    /**
     * 设置 [DC]
     */
    public AuthLoginRequestDTO setDc(String dc) {
        this.dc = dc;
        this.modify("dc", dc);
        return this;
    }

    /**
     * 设置 [验证码]
     */
    public AuthLoginRequestDTO setCode(String code) {
        this.code = code;
        this.modify("code", code);
        return this;
    }

    /**
     * 设置 [验证码标识]
     */
    public AuthLoginRequestDTO setState(String state) {
        this.state = state;
        this.modify("state", state);
        return this;
    }

    /**
     * 设置 [登录类型]
     */
    public AuthLoginRequestDTO setLoginType(String loginType) {
        this.loginType = loginType;
        this.modify("logintype", loginType);
        return this;
    }


}
